﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _13._4
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var animals = new[]
            {
                new {name="a",age=1,widght=1.1},
                new { name = "a", age = 1, widght = 1.1 },
                new { name = "c", age = 3, widght = 3.1 }

            };

            Console.WriteLine(animals[0].ToString());
            Console.WriteLine(animals[0].GetHashCode());
            Console.WriteLine(animals[1].GetHashCode());
            Console.WriteLine(animals[2].GetHashCode());
            Console.WriteLine(animals[0].Equals(animals[1]));
            Console.WriteLine(animals[0].Equals(animals[2]));
            Console.WriteLine(animals[0] == animals[1]);
            Console.WriteLine(animals[0] == animals[2]);
            Console.ReadLine();


        }
    }
}
